package demo3;

public class Test {
    public static void main(String[] args) {
        Student student1=new Student("zz");
        Student student2=new Student("zz");
        System.out.println(student1==student2);//student1与student2指向的对象不一样，即student1的值不等于student2
        System.out.println(student1.equals(student2));
        System.out.println(student1.hashCode());
        System.out.println(student2.hashCode());
    }
}
